package example.telosys.persistence;

import org.telosys.common.logger.TraceConfig;
import org.telosys.persistence.PersistenceManager;
import org.telosys.persistence.PersistenceManagerFactory;
import org.telosys.persistence.TelosysPersistence;
import org.telosys.persistence.dbfeatures.SpecificSqlOperations;

public class SampleSequence {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		TraceConfig.setFlag(SpecificSqlOperations.class, true);
		
		PersistenceManagerFactory pmf = TelosysPersistence.getPersistenceManagerFactory() ;
		PersistenceManager pm = pmf.createPersistenceManager() ;
		
		long nextVal = pm.sequenceNextVal("testseq1");
		System.out.println("Next Val : " + nextVal );
		
		pm.close();		
	}

}
